/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-05-08 16:02:10
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2025-02-05 17:50:22
 * @FilePath: /vue3-admin/src/router/system.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

export const Layout = () => import('@/layout/Layout.vue');

export const systemRoutes = [
    {
        path: '/system',
        name: 'System',
        component: Layout,
        meta: {
            title: '配置',
            icon: 'system'
        },
        children: [
            {
                path: '/system/usersManage',
                name: 'UsersManage',
                component: () =>
                    import('@/views/system/UsersManage/UsersManage.vue'),
                meta: { title: '用户管理', icon: 'user', keepAlive: true }
            },
            {
                path: '/system/rolesManage',
                name: 'RolesManage',
                component: () =>
                    import('@/views/system/RolesManage/RolesManage.vue'),
                meta: { title: '角色管理', icon: 'role', keepAlive: true }
            },
            {
                path: '/system/menusManage',
                name: 'MenusManage',
                component: () =>
                    import('@/views/system/MenusManage/MenusManage.vue'),
                meta: { title: '菜单管理', icon: 'menu', keepAlive: true }
            },
            {
                path: '/system/deptManage',
                name: 'DeptManage',
                component: () =>
                    import('@/views/system/DeptManage/DeptManage.vue'),
                meta: { title: '科室', icon: 'edit', keepAlive: true }
            }
        ]
    }
];
